package com.leyou.common.exception;

import lombok.Getter;

/**
 * @ClassName : LyException  //类名
 * @Description : 自定义异常  //描述
 * @Author : qingfeng  //作者
 * @Date: 2020-09-15 07:34  //时间
 */
@Getter
public class LyException extends RuntimeException {
    /*
        异常状态马
     */
    private int status;

    public LyException(int status) {
        this.status = status;
    }

    public LyException(int status, String message) {
        super(message);
        this.status = status;
    }

    public LyException(int status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }

    public LyException(int status, Throwable cause) {
        super(cause);
        this.status = status;
    }
}
